package com.baixun.gasentity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * @program: 上海燃气驾驶舱
 * @description: 角色表，用于后台管理系统定义用户角色
 * @author: yesong
 **/

@Data
@ApiModel(description = "系统部门角色实体类")
@TableName("sys_department_user")
public class SysDepartmentRoles implements Serializable {

    @ApiModelProperty(value = "唯一标识ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "角色名称", example = "管理员")
    private String roleName;

    @ApiModelProperty(value = "角色描述", example = "具有管理权限的角色")
    private String description;

    @TableLogic
    private Integer deleted; // 逻辑删除字段

    @TableField(exist = false)
    private List<SysDepartmentPermissions> permissions;
}
